package com.plian.system.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: gangan
 * @create: 2022-05-24 14:25
 */
@Configuration
@Data
@ConfigurationProperties(prefix = "gzw")
public class GzwProperties {

    private String name;

    private String id;

    private String codeStartName;

    private String reportId;

    private String assessmentId;
    //财管处
    private String financialManagementId;

    /**
     * @Description: //TODO 判断是否是国资委
     * @Author: Take-off
     * @Date: 7:26 PM 2023/2/28
     * @Param: [orgId]
     * @return: boolean
     **/
    public  boolean getIsGzw(String orgId){
        return orgId.equals(this.id) || orgId.equals(this.reportId);
    }
}

